package MANA;

/**
 * class that represents stairs in the game
 * @author daan :-)
 */
public class Stairs extends Actor {
	private boolean isStairsDown;
	
	/**
	 * Method to check whether the stairs goes down
	 * @return returns true if the stairs goes down
	 */
	public boolean isStairsDown() {
		return isStairsDown;
	}
	/**
	 * Creates a new stairs at x, y
	 * @param x x pos of stairs
	 * @param y y pos of stairs
	 * @param b if true, stairs goes down
	 */
	public Stairs(int x, int y, boolean b) {
		super(x, y);
		isStairsDown = b;
		if (isStairsDown) {
			loadImage("res/stairsdown.png");
		} else {
			loadImage("res/stairsup.png");
		}
	}
}
